#include <iostream>
#include "mysql.h"

int main() 
{
    Database db("localhost", "username", "password", "database_name");

    // 创建表
    db.executeQuery("CREATE TABLE IF NOT EXISTS Users (id INT PRIMARY KEY, name VARCHAR(50))");

    // 插入数据
    db.executeQuery("INSERT INTO Users (id, name) VALUES (1, 'Alice')");
    db.executeQuery("INSERT INTO Users (id, name) VALUES (2, 'Bob')");

    // 查询数据
    db.executeQuery("SELECT * FROM Users");

    return 0;
}